/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pdi;

/**
 *
 * @author skipy
 */
public class Triunghi implements FiguraGeometrica,Poligon{
    public Punct a;
    public Punct b;
    public Punct c;
    @Override
    public double perimetru()
    {
        return a.distanta(b)+b.distanta(c)+c.distanta(a);
    }
    @Override
    public double arie()
    {
    return a.distanta(b)*b.distanta(c)*c.distanta(a);
    }
    
    
}
